var app = getApp()
var serverUrl=app.globalData.url;
var userinfo=app.globalData.userinfo;

Page({
 
  data: {
    addUrl: ""
    
  },
  onReady(){
      
  },
  onLoad(query) { 
    var app = getApp();
var serverUrl=app.globalData.url;
   console.info(serverUrl+"/api/hr/kehuinfo/add")
   var that=this;
 dd.getStorage({
  key: 'userinfo',
  success: function(res) {
  //   res.data.userid='144069533138858074'
   var   userid='144069533138858074'
     that.setData({    
      addUrl:serverUrl+"/api/hr/kehuinfo/add/"+userid
    })
    console.info(res)
    
  },
  fail: function(res){
    dd.alert({content: res.errorMessage});
  }
});
   }
});
